<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content table-responsive">
                    <div class="row">

                    </div>
                    <table class="table table-hover sorttable ajax-list-table" data-url="{:url('WorkflowDiyForm/show_app')}" width="100%">
                        <thead>
                        <tr>
                            <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                            <th width="22" orderField="by_name" class="sort-filed"><span>ID</span></th>
                            <th width="150"><span>表单名称</span></th>
                            <th width="150"><span>表单数据</span></th>
                            <th width="80" class="text-center">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        </tbody>
                        <tfoot class="ibox-content">
                        <tr>
                            <td colspan="4" align="center"></td>
                        </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<script id="tableListTpl" type="text/html">
    <% for(var i=0;i<data.length;i++) { %>
    <tr>
        <td><input name="user_id" class="checkboxCtrlId" value="<%=data[i]['id']%>" type="checkbox"></td>
        <td><%=data[i]['id']%></td>
        <td><%=data[i]['name']%></td>
        <td>
            <a class="ajax-open" data-url="{:url('WorkflowDiyData/show')}" data-ids="{'diy_form_id':'<%=data[i]['id']%>','listtype':'myself'}" title="表单数据">
            表单数据（<%=data[i]['data_cnt']%>）
            </a>
        </td>

        <td class="text-center">
            <lqf_link><a class="ajax-open" data-url="{:url('WorkflowDiyData/add')}" data-ids="{'diy_form_id':'<%=data[i]['id']%>'}" title="表单数据">
                <i class="fa fa-plus">选择申请</i></a>
            </lqf_link>
        </td>
    </tr>
    <% } %>
</script>
<script type="text/javascript">
    $(document).ready(function () {
        turnPage(1);//页面加载时初始化分页
    });
</script>